#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date    : 2020-08-27 15:56:55
# @Author  : Zuo Zhongfei (zuozhongfei@126.com)
# @Link    : www
# @Version : $Id$

import os

import json

# 将数组存入json文件中
numbers = [2, 3, 4, 5, 7, 8, 2]
filename = 'numbers.json'
with open(filename, 'w') as file_object:
    json.dump(numbers, file_object)
